import request from '@/utils/request'

// 监控规则列表
export const getList = (data?: any) => {
  return request({
    url: 'scrm-api/console/riskmonitoring/monitoringrules/monitoring-type',
    method: 'post',
    data
  })
}
// 新建监控规则
export const creatRule = (data: any) => {
  return request({
    url: 'scrm-api/console/riskmonitoring/monitoringrules/add-rules',
    method: 'post',
    data
  })
}
// 编辑监控规则
export const editRule = (data: any) => {
  return request({
    url: 'scrm-api/console/riskmonitoring/monitoringrules/edit-rules',
    method: 'post',
    data
  })
}
//规则列表
export const ruleList = (data: any) => {
  return request({
    url: 'scrm-api/console/riskmonitoring/monitoringrules/rules-list',
    method: 'post',
    params: data
  })
}
//删除
export const deleteList = (data: any) => {
  return request({
    url: 'scrm-api/console/riskmonitoring/monitoringrules/batch-delete',
    method: 'post',
    data
  })
}
//开启
export const openList = (data: any) => {
  return request({
    url: 'scrm-api/console/riskmonitoring/monitoringrules/batch-open',
    method: 'post',
    data
  })
}
//关闭
export const closeList = (data: any) => {
  return request({
    url: 'scrm-api/console/riskmonitoring/monitoringrules/batch-close',
    method: 'post',
    params: data
  })
}
